package com.dime.mninterface.api.model;

import com.google.gson.annotations.SerializedName;
import com.ruoyi.common.core.constant.Constants;

import java.io.Serializable;

public class MNResponseBase implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 成功 */
    public static final String SUCCESS = "000000";

    /** 失败 */
    public static final String FAIL = "500";

    public static <T> MNResponse<T> fail(String msg)
    {
        MNResponse<T>  a = new MNResponse<T>();
        a.setCode(MNResponseBase.FAIL);
        a.setMsg(msg);
        return a;
    }



    @SerializedName("clientId")
    private String clientId;
    @SerializedName("code")
    private String code;

    @SerializedName("errorMsg")
    private Object errorMsg;
    @SerializedName("msg")
    private String msg;
    @SerializedName("requestId")
    private String requestId;
    @SerializedName("status")
    private String status;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }



    public Object getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(Object errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
